package com.atguigu.test;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import javax.naming.Context;

public class HelloJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        String name = (String)context.getJobDetail().getJobDataMap().get("name");
        System.out.println("context = " + context);
        System.out.println("name = " + name);
    }
}
